var status = -1;
var selectionLog = [];

function start(d, c, b) {
    if (status == 0 && d == 0) {
        cm.dispose();
        return
    }(d == 1) ? status++ : status--;
    selectionLog[status] = b;
    var a = -1;
    if (status <= a++) {
        cm.dispose()
    } else {
        if (status == a++) {
            cm.sendNormalTalk_Bottom("#face0#虽然在T-boy面前说了大话，但其实更、更改铁路并没有那么简单。", 36, 3004651, false, true, 1)
        } else {
            if (status === a++) {
                cm.sendNormalTalk_Bottom("#face0#需要操、操作很多东西，因此需要无人机的零件。", 36, 3004651, true, true, 1)
            } else {
                if (status === a++) {
                    cm.askYesNo_Bottom("#face0#你去消灭掉它们，帮我收、收集20个#b无人机配件#k。", 36, 3004651, 1)
                } else {
                    if (status === a++) {
                        cm.forceStartQuest(37612, "");
                        cm.dispose()
                    }
                }
            }
        }
    }
}

function stage0(d, c, b) {
    if (status == 0 && d == 0) {
        cm.dispose();
        return
    }
    status++;
    selectionLog[status] = b;
    var a = -1;
    if (status <= a++) {
        cm.dispose()
    } else {
        if (status == a++) {
            var e = cm.getQuest();
            cm.askYesNo("这个任务的依次对话脚本还没有修复哦。它的脚本位于： #b 脚本/任务/37612.js#k\r\n\r\n如果你有兴趣，欢迎一起来修复！\r\n\r\n那么现在，你要立刻开始这个任务吗？")
        } else {
            if (status == a++) {
                cm.forceStartQuest();
                cm.dispose()
            }
        }
    }
}

function end(d, c, b) {
    if (status == 0 && d == 0) {
        cm.dispose();
        return
    }(d == 1) ? status++ : status--;
    selectionLog[status] = b;
    var a = -1;
    if (status <= a++) {
        cm.dispose()
    } else {
        if (status == a++) {
            cm.sendNormalTalk_Bottom("#face0#这么多就足、足够了。", 36, 3004651, false, true, 1)
        } else {
            if (status === a++) {
                cm.sendNormalTalk_Bottom("#face0#干掉了这么多，T-boy的心一定在滴、滴血。", 36, 3004651, true, true, 1)
            } else {
                if (status === a++) {
                    cm.forceCompleteQuest(37612);
                    cm.gainExp(17565641);
                    cm.gainItem(4036634, -20);
                    cm.dispose()
                }
            }
        }
    }
};